package com.example.work1month12begin.work.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Select;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("city")
@ApiModel(value = "城市",description = "城市实体，对应数据库city")
public class City {
    @TableId("cityid")
    @ApiModelProperty(value = "城市编号",dataType = "int",example = "1")
    private Integer cityId;

    @ApiModelProperty(value = "城市名",dataType = "string",example = "北京")
    @TableField("cityname")
    private String cityName;

    @ApiModelProperty(value = "城市人口",dataType = "int",example = "5000")
    @TableField("citysize")
    private Integer citySize;

    @ApiModelProperty(value = "国家编号",dataType = "int",example = "1")
    @TableField("cid")
    private Integer cid;

    @ApiModelProperty(value = "国家类")
    @TableField(exist = false)
    private Country country;
}
